//package com.yuwei.http.mvvm
//
//import android.annotation.SuppressLint
//import com.yuwei.http.BuildConfig
//import okhttp3.OkHttpClient
//import okhttp3.logging.HttpLoggingInterceptor
//import java.util.concurrent.TimeUnit
//
//object HttpManager {
//    /**
//     * 获取OKHttpClient
//     */
//    private fun getOkHttpClient():OkHttpClient{
//        var okBuilder = OkHttpClient.Builder()
//            .apply {
//                connectTimeout(10L,TimeUnit.SECONDS)
//                writeTimeout(10L,TimeUnit.SECONDS)
//                readTimeout(10L,TimeUnit.SECONDS)
//                //设置接口请求拦截器日志
//                if (BuildConfig.isOpenLog){
//                    addInterceptor(HttpLoggingInterceptor().setLevel(HttpLoggingInterceptor.Level.BODY))
//                }
//                //header参数拦截器
//
//            }
//    }
//}